package com.leancloud.circle.adapter;

import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.leancloud.circle.R;
import com.leancloud.circle.entity.AuthorEntity;

import tech.com.commoncore.manager.GlideManager;

public class InvestAdviserAdapter extends BaseQuickAdapter<AuthorEntity, BaseViewHolder> {


    public InvestAdviserAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, AuthorEntity item) {
        helper.setText(R.id.invest_adviser_item_name, item.getName());

        ImageView headImg = helper.itemView.findViewById(R.id.invest_adviser_item_head);
        GlideManager.loadCircleImg(item.getIcon(), headImg, R.mipmap.circle_icon_default_head);

        helper.itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }
}
